package com.iscreen.entities;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class SystemParametersPK implements Serializable {
	private String section;

	@Column(name="PARAM_NAME")
	private String paramName;

	private static final long serialVersionUID = 1L;

	public SystemParametersPK() {
		super();
	}

	public String getSection() {
		return this.section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public String getParamName() {
		return this.paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	@Override
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if ( ! (o instanceof SystemParametersPK)) {
			return false;
		}
		SystemParametersPK other = (SystemParametersPK) o;
		return this.section.equals(other.section)
			&& this.paramName.equals(other.paramName);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.section.hashCode();
		hash = hash * prime + this.paramName.hashCode();
		return hash;
	}

}
